package com.jhz.speedy.common.util;

import android.content.Context;
import android.widget.Toast;

import com.jhz.speedy.component.application.MyApplication;

/**
 * 提示工具
 * Created by JunHeZ on 2017/7/6.
 */
public class ToastUtils {

    private static String oldMsg;
    protected static Toast toast = null;
    private static long oneTime = 0;
    private static long twoTime = 0;

    public static void toast(String msg){
        toast(MyApplication.getInstance(), msg);
    }

    private static void toast(Context context, String msg) {
        Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
    }

    public static void toast(int msgId){
        toast(MyApplication.getInstance(), msgId);
    }

    private static void toast(Context context, int msgId) {
        Toast.makeText(context, msgId, Toast.LENGTH_SHORT).show();
    }

}
